home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(Key.isDown(39))
- {
- _root.xSpeed += _root.speedPlus;
- }
- if(_root.xSpeed >= _root.speedMax)
- {
- _root.xSpeed = _root.speedMax;
- }
- if(Key.isDown(37))
- {
- _root.xSpeed -= _root.speedPlus;
- }
- if(_root.xSpeed <= _root.speedMin)
- {
- _root.xSpeed = _root.speedMin;
- }
- if(Key.isDown(38))
- {
- _root.ySpeed -= _root.speedPlus;
- }
- if(_root.ySpeed <= _root.speedMin)
- {
- _root.ySpeed = _root.speedMin;
- }
- if(Key.isDown(40))
- {
- _root.ySpeed += _root.speedPlus;
- }
- if(_root.ySpeed >= _root.speedMax)
- {
- _root.ySpeed = _root.speedMax;
- }
- _Y = _Y + _root.ySpeed;
- _X = _X + _root.xSpeed;
- _rotation = _root.xSpeed * 2;
- }
-